cmake_minimum_required(VERSION 3.5.1)
project(libnabo)

# Source and header files.
set(NABO_SRC
  nabo/nabo.cpp
  nabo/brute_force_cpu.cpp
  nabo/kdtree_cpu.cpp
  nabo/kdtree_opencl.cpp
)

file(GLOB_RECURSE NABO_HEADERS "nabo/*.h")

# Build type options:
#	* catkin.
#	* cmake.
#	* ament (future).
set(BUILD_TYPE "catkin" CACHE STRING "Build method: catkin, cmake")
if (BUILD_TYPE STREQUAL "catkin")
  include(CatkinBuild.cmake)
else()
  # For a pure-cmake build, follow the instructions on the package.xml file, which
  # specify how to set the buildtool to cmake and export the package accordingly.
  include(PureCMakeBuild.cmake)
endif()
